﻿@{
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Localidad</title>
</head>
<body style="text-align: center">
    <div>
        <table class="table table-striped">
            <thead>
                <tr>
                    <td style="text-align: center">Nombre</td>
                    <td style="text-align: center">Codigo</td>
                </tr>
            </thead>
            <tbody>
                @foreach (var item in Model)
                {
                    <tr>
                        <td style="text-align: center">@item.Nombre</td>
                        <td style="text-align: center">@item.Codigo</td>

                        <td style="text-align: center"><a href="@Url.Action("borrar", "Localidad", new { id = item.Id })">Borrar</a>
                            <a href="@Url.Action("modificar", "Localidad", new { id = item.Id })">Modificar</a></td>
                    </tr>
                }
            </tbody>
        </table>
        <a href="@Url.Action("agregar", "localidad")">AGREGAR</a>
    </div>
</body>
</html>
